package com.example.msg.api;


import com.example.msg.dto.MsgDTO;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient("tx-msg")
@RequestMapping("/msg")
public interface MsgApi {

    @PostMapping(value = "/prepareMsg")
    @Hmily
    public  void prepareMsg(@RequestBody MsgDTO obj);

    @PostMapping(value = "/confirmMsg")
    @Hmily
    public  void confirmMsg(@RequestBody  MsgDTO obj);

    @PostMapping(value = "/deleteMsg")
    @Hmily
    public  void deleteMsg(@RequestBody  MsgDTO obj);

}
